Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection B

Total Complexity 94
Dependencies 6
Dependents 0
Total lines 1,027
Lines of code 541
Logical lines of code 216
Comment lines 364
Methods 31
Properties 5

Methods 31

Method Rating Maintainability Complexity Lines of code
add_navigation_link_directives()
A
48 7 32
merge_queries()
S
52 6 28
get_stock_status_query()
S
53 6 25
get_filter_by_price_query()
S
52 5 28
get_filter_by_attributes_query()
S
49 4 35
array_merge_recursive_replace_non_array_properties()
S
58 5 17
get_filter_by_rating_query()
S
51 4 28
get_product_visibility_query()
S
57 4 17
get_date_query()
S
59 4 15
get_final_query_args()
S
56 4 15
get_filter_by_taxonomies_query()
S
60 4 13
get_product_attributes_query()
S
53 3 26
get_filter_by_stock_status_query()
S
54 3 24
add_navigation_id_directive()
S
57 3 16
get_featured_query()
S
59 3 15
get_valid_query_vars()
S
51 2 30
update_rest_query_in_editor()
S
52 2 26
get_final_frontend_query()
S
47 1 36
get_filter_by_attributes_query_vars()
S
58 2 17
merge_tax_queries()
S
65 3 9
build_frontend_query()
S
64 3 9
filter_query_to_only_include_ids()
S
68 3 7
get_custom_orderby_query()
S
61 2 13
initialize()
S
57 1 19
get_on_sale_products_query()
S
68 2 8
extend_rest_query_allowed_params()
S
71 2 5
add_support_for_filter_blocks()
S
63 2 10
get_block_type_style()
S
82 1 3
get_queries_by_applied_filters()
S
67 1 8
enqueue_data()
S
74 1 4
get_block_type_script()
S
82 1 3